﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace HyxFrame.Core
{

    public class ObjectPoolItem : MonoBehaviour
    {
        public ObjectPoolManager PoolManager;

        private void OnDisable()
        {
            if (PoolManager != null)
            {
                PoolManager.ReturnToPool(gameObject);
            }
        }
    }
}